const mongoose = require("./db.js");

var NoticeSchema = mongoose.Schema({
    aid: String,//发该通告的管理员
    time: String,//发送时间
    content: String,//发送内容
    readedList: Array,//已读用户记录
});

module.exports = mongoose.model('Notice', NoticeSchema, 'notice');